package com.itheima.ums.service;

import com.itheima.mall.pojo.Menu;
import com.itheima.mall.vo.PageResult;

import java.util.List;

public interface UmsMenuService {
    //树形结构返回所有菜单列表
    List<Menu> treeList();

    //添加后台菜单
    Integer createMenu(Menu menu);

    //根据ID删除后台菜单
    Integer deleteMenuById(Long id);

    //分页查询后台菜单
    PageResult getMenuPage(Long parentId, Integer pageNum, Integer pageSize);

    //修改后台菜单
    Integer updateMenuById(Long id, Menu menu);

    //根据id获取菜单详情
    Menu getMenuById(Long id);

    //修改菜单显示状态
    Integer updateHidden(Long id, Long hidden);
}
